<!DOCTYPE html>
<html>
<head>
    <title>巡检记录-设备清单</title>
    #parse("sys/header.html")
    <style>
        .ui-jqgrid {
            width: 100%;
            float: right;
        }
        .leftHeight{
            height: 85vh;
            overflow: auto;
        }
        ::-webkit-scrollbar{
            width: 10px;
            height: 10px;
        }
        ::-webkit-scrollbar-thumb{
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
            background: #a8a5a5;
        }
        .workShops{
            position: absolute;
            top: 0;
            width: 100%;
            height: 25px;
            background-color: white;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>

    <Row :gutter="16" style="margin: 10px 5px 0px 5px">
        <div class="search-group">
            <i-col span="4">
                <i-input v-model="q.devCode" @on-enter="query" placeholder="设备编码"></i-input>
            </i-col>
            <i-col span="4">
                <i-input v-model="q.devSupplyName" @on-enter="query" placeholder="供应厂家"></i-input>
            </i-col>
            <i-col span="4">
                <i-select placeholder="设备大类" v-model="q.devTypeB" @on-change="getDevTypeM">
                    <i-option v-for="typeB in devTypeBList" :value="typeB.typeCode" :key="typeB.typeCode">{{typeB.typeCode}} {{typeB.typeName}}
                    </i-option>
                </i-select>
            </i-col>
            <i-col span="4">
                <i-select placeholder="设备中类" v-model="q.devTypeM" @on-change="getDevTypeS">
                    <i-option  v-for="typeM in devTypeMList" :value="typeM.typeCode" :key="typeM.typeCode">{{typeM.typeCode}} {{typeM.typeName}}
                    </i-option>
                </i-select>
            </i-col>
            <i-col span="4">
                <i-select  placeholder="设备小类" v-model="q.devTypeS">
                    <i-option  v-for="typeS in devTypeSList" :value="typeS.typeCode" :key="typeS.typeCode">{{typeS.typeCode}} {{typeS.typeName}}
                    </i-option>
                </i-select>
            </i-col>
            <i-button @click="query">查询</i-button>
            <i-button @click="reloadSearch">重置</i-button>
        </div>
        <div class="buttons-group">
            <!--#if($shiro.hasPermission("deviceinfo:delete"))
            <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            #end-->
        </div>
    </Row>
    <Row  :gutter="16" style="margin: 6px 0px 0px 1px;">
        <i-col :xs="3" :sm="3" :md="3" :lg="3">
            <div class="leftHeight" >
                <div class="workShops">
                    <p class="text-center" style="font-size: 15px;">工厂/基地</p>
                </div>
                <div id="storeLayer" style="margin-top: 25px">
                    <ul id="storeTree" class="ztree"></ul>
                </div>
            </div>
        </i-col>
        <i-col :xs="21" :sm="21" :md="21" :lg="21">
            <table  id="jqGrid"></table>
        </i-col>
    </Row>

</div>

<script src="${rc.contextPath}/js/device/inspectionplan.js?_${date.systemTime}"></script>
<style>
    .from_tab_wide {
        width: 100% !important;
        padding-top: 1% !important;
    }
</style>
        </body>
</html>
